const { join, resolve } = require("path");

// join 和 resolve 都是解析文件路径的
// 区别：join 只能拼接路径，加上它能识别 ./ ../ ../../
// resolve 能够解析 ~ (用户目录) / (根路径)

// const join_path = join("/usr/local/path", "../", "./", "/bin");
// console.log("join_path", join_path); // => /usr/local/bin

const resolve_path = resolve("/", "~/abc");
console.log("resolve_path", resolve_path); // =>
